There are teachers out there that have no place being teachers, and then there’s guys like you Daniel who are like the GSP of UFC at teaching. Truly great watching your videos. once I have done your complete course from your website, I will donate. ps: I came from php manual and their explanation of foreach was just so confusing.
36
Thank you man for these excellent tutorials! PHP is so similar with JS and it's so easy when you know JS already. You are so great at explaining things!
1
Actually you can also do something like this foreach($array as $key=>$value) to acces both value and key. And i would suggest to add the way keys are assigned to new values added the the array.
had spent time banging my head watching tutorials here. My search ended with your professional, considerate as well as warm videos. Thanks so much for these. Please keep up the good work.
9
You are truly a best Teacher. Very easy and effective tutorials. Thank You! stay blessed
Thank you for your tutorial. As a new learner of PHP and English, I find it's very useful, so I guess that means native speaker can easily understand.
1
You actual this concept very easy to understand. Thanks man, you def have a sub from me.
Thank you mmtuts! I agree with others that your tutorials are among the best that I've found on YouTube! Great job! :D
9
I am 16 years old, and i love coding To thank this guy, i don't skip his ads and let it play until its gone
2
Sir, but why can't we directly use the variable name ($array) instead of referring it to another variable $(loopdata)? I did try this example, but I'm not getting why we need to assing the old variable to a new variable?
Thanks really helped me understand better than my lecturer. Easy understandable and enlightened. would recommend.
Why do we need to create a new variable in the foreach loop, for example in this video a variable called '$loopdata", why not use the '$array' itself? thanks =)
Super explanation you did such a great job bro cheer up keep up
Thank you sir for your nice explanation.
Very easy to understand! New Subbie here ♥
1
Just criticism of videos....most programmers understand the concepts of arrays and for each etc. It's the syntax of the unknown language that trips up most programmers. Like PHP using the dot for concatenation.
nice video dani 👏🏼
How to use foreach loop for multidimensional array ??
The bad thing about your tutorials is that you use terms as a name for a structure: for example why give the array the name $array when you could choose "$names" or "$ar" since the part "array()" is repeated after the =. After that you give the name "$loopdata" when you could easily name it "$element" ose "$arrayelement". Apart from that everything is explained well, but you create confusions to someone who is new to PHP.
1
Hi, Thank you for the tutorial.. but I have a question ! The variable "$loopdata" there is no value of it, but its working, how? could you please explain?
3